Skip to content

Conversation

fuookami
Copy link
Contributor

When i using scip as rmp solver in column generation algorithm, i need to get the dual variable solution, at the same time, presolving and heuristics should be set off, like here:

val solver = ScipLinearSolver(
    config = config,
    callBack = callBack.copy()
        .configuration { _, model, _, _ ->
            model.setPresolving(SCIP_ParamSetting.SCIP_PARAMSETTING_OFF, true)
            model.setHeuristics(SCIP_ParamSetting.SCIP_PARAMSETTING_OFF, true)
            ok
        }
        .analyzingSolution { _, model, _, constraints ->
            dualSolution = constraints.map {
                Flt64(model.getDual(it))
            }
            ok
        }
)

@kkofler
Copy link
Collaborator

kkofler commented Oct 10, 2025

Looks good to me. Merging.

@kkofler kkofler merged commit c1fff41 into scipopt:master Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants